package com.mo.entity;

import com.alibaba.fastjson.annotation.JSONType;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.mo.json.FastStudentSerializer;
import com.mo.json.StatusSerializer;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;
import java.util.Map;

/**
 * @author moon.pan
 * @program mo-all
 * @apiNote
 * @since 2022/3/28
 */
@Data
@Accessors(chain = true)
//@JsonSerialize(using = StudentSerializer.class)
//@JSONType(serialzeFilters = StudentValueSerializer.class)
@JSONType(serializer = FastStudentSerializer.class)
//@JSONPOJOBuilder
public class Student {
    private double price;
    private String id;
    private String name;
    @JsonSerialize(using = StatusSerializer.class)
    private int status;
    private List<Map<String, Object>> score;
    private List<Object> result;
}
